package org.arkeologgr.appening.entity;

import static javax.persistence.EnumType.STRING;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 * Entity implementation class for Entity: Item
 *
 */
@Entity
public class Item implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Id
	private String entityUri;
		
	private double latitude;
	
	private double longitude;
	
	private String title;
	
	private String thumbUrl;
	
	@ManyToOne
	private ServiceUser creator;
		
	public enum ItemSource {
		Internal,
		KSam
	};
	
	@Enumerated(STRING)
	private ItemSource itemSource;
	
	public Item() {
		super();
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setItemSource(ItemSource itemSource) {
		this.itemSource = itemSource;
	}

	public ItemSource getItemSource() {
		return itemSource;
	}

	public void setEntityUri(String entityUri) {
		this.entityUri = entityUri;
	}

	public String getEntityUri() {
		return entityUri;
	}

	public void setThumbUrl(String thumbUrl) {
		this.thumbUrl = thumbUrl;
	}

	public String getThumbUrl() {
		return thumbUrl;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTitle() {
		return title;
	}

	public void setCreator(ServiceUser creator) {
		this.creator = creator;
	}

	public ServiceUser getCreator() {
		return creator;
	}
}
